package com.example.uniapp.utils;

import android.content.Context;
import android.content.SharedPreferences;

public class Tools {

    /**
     * 获取当前登录账号
     * @param context
     * @return
     */
    public static String getOnAccount(Context context) {
        SharedPreferences sharedPreferences = context.getSharedPreferences("data", Context.MODE_PRIVATE);
        String account = sharedPreferences.getString("account", "");
        return account;
    }
}
